﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using ModelLayer;
using DBLayer;

namespace WcfTicketsLibrary
{
    public class BookingService : IBooking
    {
        public Booking CreateBooking()
        {
            Booking booking = new DBBooking().CreateBooking();
            return booking;
        }

        public bool UpdateBooking(float totalPrice, int empId, bool isCollected)
        {

            return new DBBooking().UpdateBooking(totalPrice, empId, isCollected);
        }

        public void CreatePartBooking(int show_id)
        {
            new DBPartBooking().CreatePartBooking(show_id);
        }
        
    }
}
